<?php

namespace IDock\Insurance\ZFIC\Request;

use IDock\Insurance\ZFIC\Response\CommonResponse;

class RevokeOrderNoRequest extends AllZFICRequest
{

    protected $urlTip = '订单撤销接口';

    protected $route = 'order/api/order/revokeOrder';

    protected $response = CommonResponse::class;
    protected $insuredNo = '';
    protected $userId = '';

    public function generate(): array
    {
        $param = [
            'insuredNo' => $this->insuredNo,
            'userId' => $this->userId,
        ];
        return $param;
    }

    /**
     * @param string $insuredNo
     */
    public function setInsuredNo(string $insuredNo): void
    {
        $this->insuredNo = $insuredNo;
    }

    /**
     * @param string $userId
     */
    public function setUserId(string $userId): void
    {
        $this->userId = $userId;
    }

}